public class NumsSquare {

    public static   boolean isSquare(int num){
        int x = (int) Math.sqrt(num);
        return x * x == num;
    }

    public static void main(String[] args) {
        isSquare(9);
    }

}
